/**
 * @format
 */
import { AppRegistry, NativeModules, Text } from 'react-native'
import {
  setCustomTextInput,
  setCustomText,
  setCustomImage,
  setCustomTouchableOpacity
} from 'react-native-global-props'
import App from './src/app'
import { name as AppName } from './src/app.json'
/* 全局样式 begin */
const customTextInputProps = {
  underlineColorAndroid: 'rgba(0,0,0,0)',
  allowFontScaling: false

}
// Setting default styles for all Text components.
const customTextProps = {
  // style: {
  // fontFamily: 'DIN-Regular',
  // fontWeight: 'normal'
  // },
  allowFontScaling: false
}
const customTouchableOpacityProps = {
  hitSlop: { top: 15, right: 15, left: 15, bottom: 15 }
}
setCustomTextInput(customTextInputProps)
setCustomText(customTextProps)
// setCustomImage(customImageProps)
setCustomTouchableOpacity(customTouchableOpacityProps)

/* 全局样式 end */
console.disableYellowBox = true // 关闭全部黄色警告
const { UIManager } = NativeModules

UIManager.setLayoutAnimationEnabledExperimental &&
    UIManager.setLayoutAnimationEnabledExperimental(true)
AppRegistry.registerComponent(AppName, () => App)
